<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
<title>{$typeReuslt.typename}</title>
<link href="/assets/tpl9/css/bootstrap.min.css" rel="stylesheet">
<link href="/assets/tpl9/css/bootstrap-touch-slider.css" rel="stylesheet" media="all">
<link href="/assets/tpl9/css/public.min.css" rel="stylesheet">
<script src="/assets/tpl9/js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<style type="text/css">
body{max-width: 640px; margin: 0px auto; background-color: #f4f4f4;}
.plate_construction{background-color: #fff;}
.pro_nav{overflow: hidden; background-color: #fff; margin-bottom: 10px;}
.pro_nav li{float: left; width: 25%; overflow: hidden; margin: 12px 0px;}
.pro_nav li a{display: block; width: 60px; height: 60px; text-align: center; color: #fff; font-size: 14px; margin: 0px auto; border-radius: 100%; padding: 10px; line-height: 20px;}
.pro_nav li:nth-child(1) a{background-color: #00a0f8;}
.pro_nav li:nth-child(2) a{background-color: #b167b9;}
.pro_nav li:nth-child(3) a{background-color: #83c571;}
.pro_nav li:nth-child(4) a{background-color: #e1b14d;}
.p_float li span.p_txt h3{font-weight: normal;}
</style>
<script type="text/javascript">
	$(document).ready(function(){
		$(".carousel-indicators li:first").addClass("active");
		$(".carousel-inner div:first").addClass("active");

		$(".p_float li:first .p_img").css({"width":"100%"});
	    $(".p_float li:first .p_img img").removeAttr("height").css({"width":"100%","height":"auto"});
	    $(".p_float li:first .p_txt").css({"width":"100%","float":"none","clear":"both"});
	    $(".p_float li:first .p_txt h3").css({"height":"30px","line-height":"30px"});
	    $(".p_float li:first .p_txt p").remove();
		$(".plate_title").css({"text-align":"center","border-bottom":"none","height":"auto","line-height":"auto","margin-bottom":"0px","margin-top":"0px"});
		$(".plate_title h3").css({"padding":"0px","width":"100%","border-left":"none","height":"42px","line-height":"42px","font-size":"20px"});
		$(".plate_title a").remove();
		$(".othinfo").each(function(index, element){
			if($.trim($(this).html()) == ''){
				$(this).remove();
			}
		})
	});
</script>
</head>
<body>
<if condition="$fuhua['f_video'] neq ''">
	<include file="enter_video" enter_videpath="{$fuhua['f_video']}" enter_videoimg="{$fuhua['f_video_img']}" />
</if>

<!--显示访问量-->
<if condition="$typeReuslt['showv'] eq 1"><div class="showv">{$typeReuslt['num']}人访问</div></if>
<!--焦点图位置-->
<div style="background-color: #ccc; padding: 10px; overflow: hidden;">
<div class="foucsimg">
	<assign name="i1" value="1"/>
	<notempty name="article_info">
		<volist name="article_info" id="article" key="i">
				<if condition="stripos($article['extendattr'],'t') nheq false and ($i1 eq 1)">
					<div class="f_img"><a href="{:U('Article/index',array('id'=>$article['id']))}"><img src="{$article['thumbimg']}"><span><b>{$article['title']}</b></span><i></i></a></div>
					<assign name="i1" value="$i1+1"/>
				</if>
		</volist>
	<else/>
		<div class="f_img"><a><img src="/Public/images/img_test.jpg" height="200"><span class="qiye">请到左侧内容管理添加内容</span><span><b>入口标题文字</b></span></a></div>
	</notempty>
</div>

<!--分类导航开始-->
<ul class="pro_nav">
<volist name="submenuReuslt" id="submenu">
	<li><a href="{$submenu.jumpaddres}">{$submenu.malias}</a></li>
</volist>
</ul>
<!--分类导航结束-->
<!--自定义资源开始-->

	<if condition="$rootid eq 534">
	<div class="plate_construction">
		<div class="m10">
			<div style="height: 12px"></div>
			<div class="p_float">
			<ul>
				<li>
					<a href="http://tuijie.hrtv.cn/jxtj/37480.html">
						<span class="p_img" style="width: 100%;"><img src="/Uploads/2017-06-21/5949e58d8f6a9.jpg" style="width: 100%; height: auto;"></span>
						<span class="p_txt" style="width: 100%; float: none; clear: both;">
						<h3 style="height: 30px; line-height: 30px;">看县委书记方志勇推介大美丰宁</h3>
						</span>
					</a>
				</li>
			</ul>
		</div>
		</div>
	</div>
	</if>


<div class="othinfo customplate nonebottom">
	<volist name="custom_resource_info" id="plate">
		<if condition="($plate['id'] eq 220) or ($plate['id'] eq 221)">
			<div class="plate_construction">
				<div class="m10">
					<if condition="$plate['id'] neq 220">
						<div class="plate_title"><h3>{$plate['plate_name']}</h3><a href="{:U('Plate/index', array('plateid' => $plate['id'], 'rootid' => $rootid))}">更多>></a></div>
					<else/>
						<div style="height: 12px"></div>
					</if>
					<div class="p_float">
						<ul>
							<volist name="plate['custom_subinfo']" id="custom" key="jr">
								<if condition="$jr lt 2">
								<li>
									<a href="{:U('Plate/article', array('arid' => $custom['id']))}">
										<span class="p_img"><img src="{$custom['pic']}"></span>
										<span class="p_txt">
											<h3>{$custom['title']}</h3>
											<p>{$custom['description']|msubstr=0,30}</p>
										</span>
									</a>
								</li>
								</if>
							</volist>
						</ul>
					</div>
				</div>
			</div>
		</if>
	</volist>
</div>
<!--自定义资源结束-->

<!--政府版块-->
<notempty name="zhengfu_resource_info">
	<div class="othinfo customplate nonebottom">
		<volist name="zhengfu_resource_info" id="plate">
			<if condition="$plate['plate_type'] eq 3">
				<div class="plate_construction">
					<div class="m10">
						<div class="plate_title"><h3>{$plate['plate_name']}</h3></div>
						<div class="p_float">
							<ul>
								<li>
									<span class="p_img" style="margin-right: 10px;"><img src="{$plate['plate_img']}" height="66"></span>
									<p class="p_txt" style="line-height: 22px;">{$plate['content']|msubstr=0,32}<a href="<if condition="$plate['plate_link'] neq ''">{$plate['plate_link']}<else/>{:U('Plate/index1', array('plateid' => $plate['id'], 'rootid' => $rootid))}</if>" style="font-size: 12px; font-weight: bold; color: #e31e1b;">更多>></a></p>
								</li>
							</ul>
						</div>
					</div>
				</div>
			</if>
		</volist>
	</div>
</notempty>
<!--政府版块-->

<!--商城版块-->
<if condition="$typeReuslt['shop_c_title'] neq ''">
	<assign name="shop_c_title" value="$typeReuslt['shop_c_title']"/>
<else/>
	<assign name="shop_c_title" value="地方特产"/>
</if>
<if condition="$typeReuslt['shopimg'] neq ''">
	<div class="plate_construction">
		<div class="m10" style="margin-bottom: 18px;">
			<div class="plate_title"><h3>{$shop_c_title}</h3><a href="{$typeReuslt['shoplink']}">更多>></a></div>
			<a href="{$typeReuslt['shoplink']}" style="display: block; clear: both;"><img src="{$typeReuslt['shopimg']}" width="100%"/></a>
		</div>
	</div>
	<else/>
	<notempty name="shoplist">
		<div class="plate_construction">
			<div class="m10" style="margin-bottom: 18px;">
				<div class="plate_title"><h3>{$shop_c_title}</h3><a href="http://e.hrtv.cn/ehrtv/company/shopitem?id={$domainid}">更多>></a></div>
				<div class="epshop">
					<ul style="padding:0px;">
						<volist name="shoplist" id="v" empty="暂无数据">
							<if condition="$i lt 4">
								<li><a href="http://hrshop.hrtv.cn/index.php?controller=site&action=products&id={$v->id}"> <img src="{$v->img}"><font>{$v->name}</font><span><pre>￥{$v->sell_price}</pre></span></a></li>
							</if>
						</volist>
					</ul>
				</div>
			</div>
		</div>
	</notempty>
</if>

<!--自定义资源开始-->
<div class="othinfo customplate nonebottom">
	<volist name="custom_resource_info" id="plate">
		<if condition="($plate['id'] neq 220) and ($plate['id'] neq 221)">
			<div class="plate_construction">
				<div class="m10">
					<div class="plate_title"><h3>{$plate['plate_name']}</h3><a href="{:U('Plate/index', array('plateid' => $plate['id'], 'rootid' => $rootid))}">更多>></a></div>
					<div class="p_float">
						<ul>
							<volist name="plate['custom_subinfo']" id="custom">
								<li>
									<a href="{:U('Plate/article', array('arid' => $custom['id']))}">
										<span class="p_img"><img src="{$custom['pic']}"></span>
										<span class="p_txt">
											<h3>{$custom['title']}</h3>
											<p>{$custom['description']|msubstr=0,30}</p>
										</span>
									</a>
								</li>
							</volist>
						</ul>
					</div>
				</div>
			</div>
		</if>
	</volist>
</div>
<!--自定义资源结束-->
<!--板块结构-->
<div class="othinfo" style="background-color: #fff; padding-top: 4px; padding-bottom: 3px;">
	<volist name="plate_resource_info" id="plate">
		<if condition="$plate['plate_type'] eq 1">
			<switch name="plate.id">
				<case value="52">
					<div class="m10">
						<div class="plate_title"><h3>{$plate['plate_name']}</h3><a href="{:U('Plate/index', array('plateid' => $plate['id'], 'rootid' => $rootid))}">更多>></a></div>
						<div class="p_float">
							<ul>
								<li style="height: 86px; margin-bottom: 20px;">
									<a href="{:U('Plate/ahistory', array('eid' => $history_resource_info['e_id']))}">
										<span class="p_img"><img src="{$history_resource_info['pic']}"></span>
										<span class="p_txt">
											<h3>{$history_resource_info['title']|msubstr=0,20}</h3>
											<p>{$history_resource_info.content|msubstr=0,34}</p>
										</span>
									</a>
								</li>
							</ul>
						</div>
					</div>
				</case>
				<case value="53">
					<div class="m10">
						<div class="plate_title"><h3>{$plate['plate_name']}</h3><a href="{:U('Plate/index', array('plateid' => $plate['id'], 'rootid' => $rootid))}">更多>></a></div>
						<div class="p_list">
							<ul>
								<volist name="weixin_resource_info" id="weixin" key="i">
									<if condition="$i lt 4">
										<li>
											<a href="{$weixin['r_url']}">{$weixin['title']}</a>
											<label>{$weixin['author_name']} {$weixin['r_date']}</label>
										</li>
									</if>
								</volist>
							</ul>
						</div>
					</div>
				</case>
				<case value="56">
					<div class="m10">
						<div class="plate_title"><h3>{$plate['plate_name']}</h3><a href="{:U('Plate/index', array('plateid' => $plate['id'], 'rootid' => $rootid))}">更多>></a></div>
						<div class="p_float p_jxuan">
							<ul>
								<volist name="news_resource_info" id="news" key="i">
									<if condition="$i lt 4">
										<li>
											<a href="{$news['r_url']}">
												<span class="p_img" style="background:url('{$news['pic']}') no-repeat center center; background-size:cover;"></span>
												<span class="p_txt">
													<h3>{$news['title']|msubstr=0,20}</h3>
													<label>{$news['author_name']}</label>
												</span>
											</a>
										</li>
									</if>
								</volist>
							</ul>
						</div>
					</div>
				</case>
				<case value="57">
					<div class="m10">
						<div class="plate_title"><h3>{$plate['plate_name']}</h3><a href="{:U('Plate/index', array('plateid' => $plate['id'], 'rootid' => $rootid))}">更多>></a></div>
						<div class="p_list">
							<ul>
								<volist name="xiaohua_resource_info" id="xiaohua" key="i">
									<if condition="$i lt 2">
										<li>
											<a style="height: auto; line-height: 24px; font-size: 14px; text-indent:28px;">{$xiaohua['content']}</a>
											<label style="font-weight: normal;">{$xiaohua['r_date']}</label>
										</li>
									</if>
								</volist>
							</ul>
						</div>
					</div>
				</case>

			</switch>
		</if>
	</volist>
</div>
</div>

<!-- 防伪入口 -->
<if condition="$type.ep_fwei eq 1">
	<a href="{:U('Fangwei/index',array('domainid'=>$domainid,'rootid'=>$rootid))}" class="fangwei"><img src="/IndexPublic/images/fweiicon.png" width="50px"></a>
	<style type="text/css">
		a.fangwei{display:block; position:fixed; z-index:999; width:50px; height:50px; line-height:50px; border-radius:100%; text-align:center; color:#fff; background-color:rgba(0,0,0,.7); right:12px; bottom:50px;}
	</style>
</if>

<!-- 一物一码游戏规则 -->
<include file="gamerule" />

<!--分享-->
<script type="text/javascript">
	wx.config({
		debug: false,
		appId: '{$signPackage.appId}',
		timestamp: '{$signPackage.timestamp}',
		nonceStr: '{$signPackage.nonceStr}',
		signature: '{$signPackage.signature}',
		jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage']
	});
	wx.ready(function () {
		// 1 判断当前版本是否支持指定 JS 接口，支持批量判断
		wx.checkJsApi({
			jsApiList: [
				'getNetworkType',
				'previewImage',
				'onMenuShareTimeline',
				'onMenuShareAppMessage',
				'onMenuShareQQ',
				'onMenuShareWeibo'
			],
			success: function (res) {
				//alert(JSON.stringify(res));
			}
		});
		var shareData = {
			title: '{$typeReuslt.sharetitle}',
			desc: '{$typeReuslt.sharedesc}',
			link: '',
			imgUrl: "{:C('WEBSITE')}{$typeReuslt.shareico}",
			trigger: function (res) {
				//alert('用户点击发送给朋友');
			},
			success: function (res) {
				//alert('已分享');
			},
			cancel: function (res) {
				//alert('已取消');
			},
			fail: function (res) {
				//alert(JSON.stringify(res));
			}
		};
		wx.onMenuShareAppMessage(shareData);
		wx.onMenuShareTimeline(shareData);
		wx.onMenuShareQQ(shareData);
		wx.onMenuShareWeibo(shareData);
	});
	wx.error(function (res) {
		//alert(res.errMsg);
	});
</script>

<script>
	var _hmt = _hmt || [];
	(function() {
		var hm = document.createElement("script");
		hm.src = "//hm.baidu.com/hm.js?866f77a55f999b86088bf2440ad424a7";
		var s = document.getElementsByTagName("script")[0];
		s.parentNode.insertBefore(hm, s);
	})();
</script>
</body>
</html>